import request from "@/utils/request"

export const getAllApi = (taskName, pageNum, pageSize) => {
  return request.get(`/stocktaking/task/list?taskName=${taskName}&pageNum=${pageNum}&pageSize=${pageSize}`)
}
export const addTaskApi = (data) => {
  return request.post(`/stocktaking/task/trigger`, data)
}